﻿@{
    ViewBag.Title = GongZuo.Common.Utils.GetAppSetting("webName");
    Layout = "";
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <script src="@Url.Content("~/Scripts/layui/layui.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/layui/extend/layui-config.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Scripts/layui/css/layui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Scripts/layui/extend/layui.extend.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Public.js")" type="text/javascript"></script>
    <style type="text/css">
        .homee .layui-this > a:hover {
               background-color: rgba(255,255,255,.7);
         }
        .layui-nav-two
        {
           padding-left:5px;
        }

       @if (ViewBag.MenuMode == "top")
        {
             <text>
        .layui-layout-admin .layui-side, .layui-side-scroll {
            width: 0px;
        }
        .layui-body, .layui-layout-admin .layui-footer {
            left: 0px;
        }
           </text>
        }
    </style>
</head>
<body class="layui-layout-body">
    <!--layui所有元素放在这里-->
    <div class="layui-header layui-bg-my">
        <div class="layui-logo">
            @ViewBag.Title
        </div>
        <ul class="layui-nav layui-layout-left layui-tabbox-nav">
            @if (ViewBag.MenuMode == "top")
            {
                <li class="layui-nav-item homee">
                    <a href="/Home/Main" target="mainIframe" title='首页' class="navA"><i class="layui-icon">&#xe68e;</i>首页</a>
                </li>
                    @Html.Raw(ViewBag.TopMenuHtml)
            }
        </ul>
        <ul class="layui-nav layui-layout-right">
            <i class="layui-icon" style="position: relative; display: inline-block; top: 7px;
                    line-height: 42px; right: -15px; font-size: 20px;">&#xe612;</i>
            <li class="layui-nav-item">
                <a href="javascript:;" class="topItem">
                    @* <img src="http://t.cn/RCzsdCq" class="layui-nav-img">*@
                    @*@ViewBag.Account.user_name*@
                </a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="#" id="lnkChangeInfo">修改信息</a>
                    </dd>
                    <dd>
                        <a href="/account/logout">重新登录</a>
                    </dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-side">
        <div class="layui-side-scroll layui-bg-my">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） layui-nav-itemed -->
            <ul class="layui-nav layui-nav-tree layui-tabbox-nav" lay-filter="test">
                @if (ViewBag.MenuMode == "left")
                {
                    <li class="layui-nav-item">
                        <a href="/home/main" target="mainIframe" title='首页'><i class="layui-icon">&#xe68e;</i>首页</a>
                    </li>
                        @Html.Raw(ViewBag.LeftMenuHtml)
                }
            </ul>
        </div>
    </div>
     <div class="layui-body" id="container">

     </div>
    <div class="layui-footer">
        <!--底部固定区域-->
        @GongZuo.Common.Utils.GetAppSetting("copyright");
    </div>
    <div id="modInfo" style="display:none;">

    </div>
    <script>
        var MainUrl = "/home/main";
        var MainID = 0;
        layui.use(['element', 'home', 'layer'], function () {
            var element = layui.layer;
            var layer = layui.layer;
        });
    </script>
</body>
</html>